package com.ln.controller;

import com.ln.service.User02Service;
import com.ln.vo.LoginVo;
import com.ln.vo.Result;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Ln
 * @version 终极版
 * @date 2022/11/23 16:15
 */
@RestController
@Api(tags = "用户账号密码")
@CrossOrigin
public class User02Controller {
    @Autowired
    private User02Service user02Service;

    @RequestMapping("/login")
    public Result select(@RequestBody LoginVo loginVo){
        Result select = user02Service.select(loginVo);
        return select;
    }
}
